<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>二维码生成器</title>
    <link rel="stylesheet" href="popup.css">
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>🔲 二维码生成器</h1>
        </div>
        
        <div class="input-section">
            <div class="input-group">
                <label for="textInput">输入要生成二维码的内容：</label>
                <textarea id="textInput" placeholder="请输入文本、网址或其他内容..."></textarea>
                <div class="char-count">
                    <span id="charCount">字符数: 0</span>
                </div>
            </div>
            
            <div class="button-group">
                <button id="generateBtn" class="btn btn-primary">生成二维码</button>
                <button id="clearBtn" class="btn btn-secondary">清除</button>
            </div>
        </div>
        
        <div class="qr-section">
            <div id="qrcode">
                <div class="placeholder">在上方输入内容，然后点击"生成二维码"</div>
            </div>
            <button id="downloadBtn" class="btn btn-secondary">下载二维码</button>
        </div>
        
        <div class="status" id="status"></div>
    </div>
    
    <script src="qrcode.min.js"></script>
    <script src="popup.js"></script>
</body>
</html>